#include "car_power_struct_csv.hpp"
#include "type_conversion.hpp"


car_power_struct_csv::car_power_struct_csv(std::vector<std::string> const& v)
{
		
	   switch(v.size()-1)
 	   {
		case NOTE: 
			set_notes(v[NOTE]);
		case POWER:	
			set_power(type_conversion<float>::to_number(v[POWER]));
		case ID:
			set_id(type_conversion<int>::to_number(v[ID]));
			break;
		default: break;
	   }
		
//		std::cout << *this << std::endl;
}